package org.jeecg.modules.jxc.sale.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.jxc.sale.entity.SaleList;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.jxc.sale.entity.SaleListGoods;
import org.jeecg.modules.jxc.sale.vo.CustomerList;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: tb_sale_list
 * @Author: jeecg-boot
 * @Date:   2021-10-26
 * @Version: V1.0
 */
public interface ISaleListService extends IService<SaleList> {

	public List<SaleList> selectByMainId(String mainId);

	List<CustomerList> selectByCustomerId();

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(SaleList saleList,List<SaleListGoods> saleListGoodsList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(SaleList saleList,List<SaleListGoods> saleListGoodsList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


	IPage<Map<String, Object>> pageList(Page<Map<String, Object>> page, SaleList saleList);
}
